import request from '@/utils/http'

export class DatasourceConfigService {
	
	static pages(params:any) {
	  return request.post<any>({
	    url: '/data-collect/config/pages',
		params
	  })
	}
	
	static save(params:any) {
	  return request.post<any>({
	    url: '/data-collect/config/save',
		params
	  })
	}
	
	static delete(id:string) {
	  return request.del<any>({
	    url: '/data-collect/config/'+id,
	  })
	}
	
	static get(id:string) {
	  return request.get<any>({
	    url: '/data-collect/config/'+id+'/info',
	  })
	}
	
	static test(id:string,type:string) {
	  return request.get<any>({
	    url: '/data-collect/config/'+id+'/'+type+'/test',
	  })
	}
}
